﻿using System.Collections.Specialized;
using System.Net;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Ninject;
using NTweet;
using NTweet.HttpService;

namespace Tests.NTweet.Core {


	[TestClass]
	public class ClientLogin : ClientTestHarness {
		[TestMethod]
		public void Login_Verifies_Credentials() {
			var response = CreateHttpRequestMock("http://twitter.com/account/verify_credentials.json");
			response
				.SetupGet((r) => r.StatusCode)
				.Returns(HttpStatusCode.OK)
				.Verifiable();
			var client = new Client(httpRequestFactory.Object);
			bool result = client.Login(credentials.Object);
		}
	}
}
